package cn.ruanyun.backInterface.modules.business.withdrawDeposit.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import cn.ruanyun.backInterface.modules.business.withdrawDeposit.pojo.WithdrawDeposit;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * 提现管理数据处理层
 * @author z
 */
public interface WithdrawDepositMapper extends BaseMapper<WithdrawDeposit> {

    List<WithdrawDeposit> selectWithdrList(WithdrawDeposit withdrawDeposit);

    @Select("select * from t_withdraw_deposit where create_by=#{createBy} and type=#{type}")
    List<WithdrawDeposit> selectWithdrListByUserIdAndType(String createBy, Integer type);

    @Select("select * from t_withdraw_deposit where create_by=#{createBy}")
    List<WithdrawDeposit> selectWithdrListByUserId(String createBy);
}